public class Demo19 {
    public static void main(String[] args) {
        int i = 0;
        int j = 0;
        int k = 0;

        for (i = 1; i <= 4; i++) {// row  1 -> 4
            for (k = 0; k < 4 - i; k++) {
                System.out.print(" ");
            }
            for (j = 1; j <= i * 2 - 1; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
        for (i = 3; i >= 1; i--) {// row  1 -> 4
            for (k = 0; k < 4 - i; k++) {
                System.out.print(" ");
            }
            for (j = 1; j <= i * 2 - 1; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}